package com.yanqu.road.entity.log.cross.sonhai;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

@FieldTypeAnnotation(tableName = "t_l_ck_son_hai_battle", desc = "山海伏兽-战斗日志", autoSave = true, dataUpload = true, eventName = "mountsea_fight", uploadCk = true, isCross = true)
public class LogCrossSonHaiBattle extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", dataAttribute = "activityId", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "分组ID", dataAttribute = "group_id", isIndex = true)
    private int groupId;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "队伍id", dataAttribute = "mountsea_team")
    private int teamId;

    @FieldTypeAnnotation(desc = "区域ID", dataAttribute = "mountsea_area")
    private int regionId;

    @FieldTypeAnnotation(desc = "事件id", dataAttribute = "mountsea_type")
    private int eventId;

    @FieldTypeAnnotation(desc = "事件归属用户id", dataAttribute = "mountsea_belong")
    private long eventUserId;

    @FieldTypeAnnotation(desc = "攻击id", dataAttribute = "mountsea_fightid")
    private long targetId;

    @FieldTypeAnnotation(desc = "消耗体力", dataAttribute = "mountsea_usephy")
    private int costEnergy;

    @FieldTypeAnnotation(desc = "当前体力值", dataAttribute = "mountsea_nowphy")
    private int currentEnergy;

    @FieldTypeAnnotation(desc = "是否镇伏", dataAttribute = "mountsea_isuccess")
    private int winFlag;

    @FieldTypeAnnotation(desc = "造成伤害", dataAttribute = "mountsea_hurt")
    private long harm;

    @FieldTypeAnnotation(desc = "奖励", dataAttribute = "mountsea_get")
    private String reward;

    @FieldTypeAnnotation(desc = "获得积分", dataAttribute = "mountsea_getscore")
    private long score;

    @FieldTypeAnnotation(desc = "获得寻踪进度", dataAttribute = "mountsea_getplan")
    private long progress;

    @FieldTypeAnnotation(desc = "当前寻踪进度", dataAttribute = "mountsea_nowplan")
    private long currentProgress;

    @FieldTypeAnnotation(desc = "获得山海灵气", dataAttribute = "mountsea_anima")
    private long auraScore;

    public LogCrossSonHaiBattle(int activityId, int groupId, long userId, int teamId, int regionId, int eventId, long eventUserId, long targetId, int costEnergy, int currentEnergy, int winFlag, long harm, String reward, long score, long progress, long currentProgress, long auraScore) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.userId = userId;
        this.teamId = teamId;
        this.regionId = regionId;
        this.eventId = eventId;
        this.eventUserId = eventUserId;
        this.targetId = targetId;
        this.costEnergy = costEnergy;
        this.currentEnergy = currentEnergy;
        this.winFlag = winFlag;
        this.harm = harm;
        this.reward = reward;
        this.score = score;
        this.progress = progress;
        this.currentProgress = currentProgress;
        this.auraScore = auraScore;
    }

    @Override
    public long getUserId() {
        return userId;
    }

}
